﻿using Models;
using MySqlSugar;
using Repositories.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Repositories.Repository
{
    public class StudentRepository : BaseRepository<student>, IStudentRepository
    {
        public StudentRepository()
        { }

        public new student GetById(int id)
        {
            var model = _db.Queryable<student>().InSingle(id);
            return model;
        }

        //public List<student> GetList()
        //{
        //    return GetList().ToList();
        //}
        //public List<student> GetList(Expression<Func<student, bool>> where)
        //{
        //     return GetList(where).ToList();
        //}
    }
}
